package io.renren.modules.iots.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.iots.dao.IotsCtrlInfoDao;
import io.renren.modules.iots.entity.IotsCtrlInfoEntity;
import io.renren.modules.iots.service.IotsCtrlInfoService;


@Service("iotsCtrlInfoService")
public class IotsCtrlInfoServiceImpl extends ServiceImpl<IotsCtrlInfoDao, IotsCtrlInfoEntity> implements IotsCtrlInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<IotsCtrlInfoEntity> page = this.selectPage(
                new Query<IotsCtrlInfoEntity>(params).getPage(),
                new EntityWrapper<IotsCtrlInfoEntity>()
        );

        return new PageUtils(page);
    }

}
